package com.edu.employee.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: summer-project
 * @Titile: EmpUpdatePwdDTO
 * @Author: Lucky
 * @Description: 员工修改密码DTO
 */
@Data
public class EmpUpdatePwdDTO {
    /*原密码*/
    @NotBlank(message = "原密码不能为空")
    @Length(min = 6,max = 12,message = "原密码的长度为{min}-{max}位")
    private String oldPassword;
    /*新密码*/
    @NotBlank(message = "新密码不能为空")
    @Length(min = 6,max = 12,message = "新密码的长度为{min}-{max}位")
    private String newPassword;
    /*确认密码*/
    @NotBlank(message = "确认密码不能为空")
    @Length(min = 6,max = 12,message = "确认密码的长度为{min}-{max}位")
    private String reNewPassword;
}
